package com.erp.common.ex;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ErpException extends RuntimeException{

    private Integer code;

    public ErpException(Integer code,String message) {
        super(message);
        this.code = code;
    }


    public ErpException(String message) {
        super(message);
    }
}
